<!-- BEGIN NEWS FORM -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'articles-form',
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'horizontal-form',
		//'enctype'=>'multipart/form-data'
	),
)); ?>
<div class="form-body">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group <?php echo ($model->getError('title') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'title', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'title', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'title', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->getError('brief') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'brief', array('class'=>'control-label')); ?>
                <?php echo $form->textArea($model, 'brief', array('class'=>'form-control')); ?>
                <?php echo $form->error($model, 'brief', array('class'=>'help-block')); ?>
            </div>
        </div>
    </div>
    <div class="row">
    	<div class="col-md-12">
        	<div class="form-group <?php echo ($model->getError('description') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model, 'description', array('class'=>'control-label')); ?>
                <?php $this->widget('application.extensions.ckeditor.CKEditor', array(
					'model'=>$model,
					'attribute'=>'description',
					'language'=>'vi',
					'editorTemplate'=>'full',
                    'options'=>array(
                        'height'=>'600px',
                    ),
					'htmlOptions'=>array('rows'=>20,'class'=>'form-control'),
				)); ?>
				<?php echo $form->error($model, 'description', array('class'=>'help-block')); ?>
			</div>
        </div>
    </div>
</div>
<div class="form-actions right">
	<button type="reset" class="btn default">Cancel</button>
	<button type="submit" class="btn blue" onClick="Custom.showLoading();"><i class="icon-ok"></i> <?php echo $model->isNewRecord ? 'Đăng tin' : 'Cập nhật tin'; ?></button>
</div>
<?php $this->endWidget(); ?>
<!-- END NEWS FORM -->